<?php
class TbfInput {
    static function get($key){
        if (empty($_GET[$key])){
            return '';
        }else{
            return $_GET[$key];
        }
    }
    static function request($key){
        if (empty($_REQUEST[$key])){
            return '';
        }else{
            return $_REQUEST[$key];
        }
    }
    static function post($key){
        if (empty($_POST[$key])){
            return '';
        }else{
            return $_POST[$key];
        }
    }
    static function isGet(){
        return $_SERVER['REQUEST_METHOD'] === 'GET';
    }
    static function isPost(){
        return $_SERVER['REQUEST_METHOD'] === 'POST';
    }
}